package org.ym.system.ui.vo;

import lombok.Builder;
import lombok.Data;
import org.ym.system.domain.command.SysUserCommand;

import java.io.Serializable;

/**
 * @author ym
 */
@Data
@Builder
public class SysUserVO implements Serializable {
    private static final long serialVersionUID = 6329801544225920734L;
    /**
     * 主键
     */
    private Long id;


    /**
     * 转换命令
     * @return 命令
     */
    public SysUserCommand toCommand(){
        return SysUserCommand.builder()
                .id(id)
                //todo
                .build();
    }
}
